package com.dailyblue.java.project.smbms.goods.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dailyblue.java.project.smbms.goods.bean.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {
    @Select("<script>select * from smbms_goods where goodsName like #{goodsName} <if test='proId!=0'> and providerId=#{proId} </if></script>")
    List<Goods> find(@Param("goodsName") String goodsName,@Param("proId") int proId);
}
